package com.sikaryofficial.system.api.model.download;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sikaryofficial.common.core.annotation.LocalDateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * 下载任务对象 download_task_t
 *
 * @author qinjinyuan
 * @date 2024-01-12
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "导出对象列表出参", description = "导出对象列表出参")
public class DownloadTaskDTO {
    private static final long serialVersionUID = 1L;
    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID", example = "122335")
    private Long taskId;

    /**
     * 对象ID
     */
    @ApiModelProperty(value = "对象ID", example = "122335")
    private Long objectId;

    /**
     * 任务类型 :1-产品二维码
     */
    @JsonIgnore
    private Integer taskType;

    /**
     * 任务状态 1- 生成中 2-可下载
     */
    @JsonIgnore
    private Integer taskStatus;

    /**
     * 工作量（一次任务的数量）
     */
    @ApiModelProperty(value = "工作量（一次任务的数量）", example = "100")
    private Long workLoad;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", example = "2024-01-13 00:00:00")
    @LocalDateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;
}
